package com.home.webapp.base.mapper;

import com.home.webapp.base.entity.BaseUser;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;


/**
 * Description: 用户信息 mapper
 * Created by 王大宸 on 2020-10-05 23:28:38
 * Created with IntelliJ IDEA
 */
public interface BaseUserMapper extends Mapper<BaseUser> {

    /***
     * 功能说明：分页
     *
     * @author 王大宸
     * @date 2020/10/6 23:34
     * @param params  limit/page/name
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.home.webapp.base.entity.BaseUser>
     */
    List<BaseUser> page(Map<String, Object> params);


    /***
     * 功能说明：根据登录账号查询用户
     *
     * @author 王大宸
     * @date 2020/10/6 0:51
     * @param username 需要查询的登录账号
     * @return com.home.webapp.base.entity.BaseUser
     */
    BaseUser getByUsername(String username);

}
